﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WPF人员管理
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void button_Click(object sender, RoutedEventArgs e)
        {

        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn1_Click(object sender, RoutedEventArgs e)
        {
            block1.Text = "WPF编程入门";
        }

        private void btn2_Click(object sender, RoutedEventArgs e)
        {
            Window1 wnd = new Window1();
            wnd.ShowDialog();
        }

        private void btn3_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void btn4_Click(object sender, RoutedEventArgs e)
        {
            Window2 wnd = new Window2();
            wnd.ShowDialog();
        }
    }
}
